home *** CD-ROM | disk | FTP | other *** search
/ Creative Computers / Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso / shareware / games / uchess / src / windows.h < prev   
C/C++ Source or Header  |  1994-11-17  |  16KB  |  434 lines

  1.  
  2. struct NewScreen NewScreenStructure = {
  3.     0,0,    /* screen XY origin relative to View */
  4.     640,400,    /* screen width and height */
  5.     4,    /* screen depth (number of bitplanes) */
  6.     0,1,    /* detail and block pens */
  7.     LACE+HIRES,    /* display modes for this screen */
  8.     CUSTOMSCREEN,    /* screen type */
  9.     &NULL,    /* pointer to default screen font */
  10.     "UChess v1.0",    /* screen title */
  11.     NULL,    /* first in list of custom screen gadgets */
  12.     NULL    /* pointer to custom BitMap structure */
  13. };
  14.  
  15. #define NEWSCREENSTRUCTURE NewScreenStructure
  16.  
  17. USHORT Palette[] = {
  18.     0x0455,    /* color #0 */
  19.     0x0CCE,    /* color #1 */
  20.     0x0FFF,    /* color #2 */
  21.     0x068B,    /* color #3 */
  22.     0x000F,    /* color #4 */
  23.     0x0F0F,    /* color #5 */
  24.     0x00FF,    /* color #6 */
  25.     0x0FFF,    /* color #7 */
  26.     0x0620,    /* color #8 */
  27.     0x0E50,    /* color #9 */
  28.     0x09F1,    /* color #10 */
  29.     0x0EB0,    /* color #11 */
  30.     0x055F,    /* color #12 */
  31.     0x092F,    /* color #13 */
  32.     0x00F8,    /* color #14 */
  33.     0x0CCC    /* color #15 */
  34. #define PaletteColorCount 16
  35. };
  36.  
  37. #define PALETTE Palette
  38.  
  39. struct TextAttr TOPAZ80 = {
  40.     (STRPTR)"topaz.font",
  41.     TOPAZ_EIGHTY,0,0
  42. };
  43. struct IntuiText IText1 = {
  44.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  45.     0,0,    /* XY origin relative to container TopLeft */
  46.     &TOPAZ80,    /* font pointer or NULL for default */
  47.     "Set Time",    /* pointer to text */
  48.     NULL    /* next IntuiText structure */
  49. };
  50.  
  51. struct MenuItem MenuItem3 = {
  52.     NULL,    /* next MenuItem structure */
  53.     0,16,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  54.     72,8,    /* hit box width and height */
  55.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  56.     0,    /* each bit mutually-excludes a same-level Item */
  57.     (APTR)&IText1,    /* Item render  (IntuiText or Image or NULL) */
  58.     NULL,    /* Select render */
  59.     NULL,    /* alternate command-key */
  60.     NULL,    /* SubItem list */
  61.     MENUNULL    /* filled in by Intuition for drag selections */
  62. };
  63.  
  64. struct IntuiText IText2 = {
  65.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  66.     0,0,    /* XY origin relative to container TopLeft */
  67.     &TOPAZ80,    /* font pointer or NULL for default */
  68.     "Test",    /* pointer to text */
  69.     NULL    /* next IntuiText structure */
  70. };
  71.  
  72. struct MenuItem MenuItem2 = {
  73.     &MenuItem3,    /* next MenuItem structure */
  74.     0,8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  75.     72,8,    /* hit box width and height */
  76.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  77.     0,    /* each bit mutually-excludes a same-level Item */
  78.     (APTR)&IText2,    /* Item render  (IntuiText or Image or NULL) */
  79.     NULL,    /* Select render */
  80.     NULL,    /* alternate command-key */
  81.     NULL,    /* SubItem list */
  82.     MENUNULL    /* filled in by Intuition for drag selections */
  83. };
  84.  
  85. struct IntuiText IText3 = {
  86.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  87.     0,0,    /* XY origin relative to container TopLeft */
  88.     &TOPAZ80,    /* font pointer or NULL for default */
  89.     "Hint",    /* pointer to text */
  90.     NULL    /* next IntuiText structure */
  91. };
  92.  
  93. struct MenuItem MenuItem1 = {
  94.     &MenuItem2,    /* next MenuItem structure */
  95.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  96.     72,8,    /* hit box width and height */
  97.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  98.     0,    /* each bit mutually-excludes a same-level Item */
  99.     (APTR)&IText3,    /* Item render  (IntuiText or Image or NULL) */
  100.     NULL,    /* Select render */
  101.     'H',    /* alternate command-key */
  102.     NULL,    /* SubItem list */
  103.     MENUNULL    /* filled in by Intuition for drag selections */
  104. };
  105.  
  106. struct Menu Menu4 = {
  107.     NULL,    /* next Menu structure */
  108.     162,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  109.     63,0,    /* Menu hit box width and height */
  110.     MENUENABLED,    /* Menu flags */
  111.     "Special",    /* text of Menu name */
  112.     &MenuItem1    /* MenuItem linked list pointer */
  113. };
  114.  
  115. struct IntuiText IText4 = {
  116.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  117.     19,0,    /* XY origin relative to container TopLeft */
  118.     &TOPAZ80,    /* font pointer or NULL for default */
  119.     "Thinking",    /* pointer to text */
  120.     NULL    /* next IntuiText structure */
  121. };
  122.  
  123. struct MenuItem MenuItem8 = {
  124.     NULL,    /* next MenuItem structure */
  125.     0,32,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  126.     123,8,    /* hit box width and height */
  127.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  128.     0,    /* each bit mutually-excludes a same-level Item */
  129.     (APTR)&IText4,    /* Item render  (IntuiText or Image or NULL) */
  130.     NULL,    /* Select render */
  131.     'T',    /* alternate command-key */
  132.     NULL,    /* SubItem list */
  133.     MENUNULL    /* filled in by Intuition for drag selections */
  134. };
  135.  
  136. struct IntuiText IText5 = {
  137.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  138.     0,0,    /* XY origin relative to container TopLeft */
  139.     &TOPAZ80,    /* font pointer or NULL for default */
  140.     "Undo",    /* pointer to text */
  141.     NULL    /* next IntuiText structure */
  142. };
  143.  
  144. struct MenuItem MenuItem7 = {
  145.     &MenuItem8,    /* next MenuItem structure */
  146.     0,24,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  147.     123,8,    /* hit box width and height */
  148.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  149.     0,    /* each bit mutually-excludes a same-level Item */
  150.     (APTR)&IText5,    /* Item render  (IntuiText or Image or NULL) */
  151.     NULL,    /* Select render */
  152.     'U',    /* alternate command-key */
  153.     NULL,    /* SubItem list */
  154.     MENUNULL    /* filled in by Intuition for drag selections */
  155. };
  156.  
  157. struct IntuiText IText6 = {
  158.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  159.     0,0,    /* XY origin relative to container TopLeft */
  160.     &TOPAZ80,    /* font pointer or NULL for default */
  161.     "Move Now",    /* pointer to text */
  162.     NULL    /* next IntuiText structure */
  163. };
  164.  
  165. struct MenuItem MenuItem6 = {
  166.     &MenuItem7,    /* next MenuItem structure */
  167.     0,16,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  168.     123,8,    /* hit box width and height */
  169.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  170.     0,    /* each bit mutually-excludes a same-level Item */
  171.     (APTR)&IText6,    /* Item render  (IntuiText or Image or NULL) */
  172.     NULL,    /* Select render */
  173.     'M',    /* alternate command-key */
  174.     NULL,    /* SubItem list */
  175.     MENUNULL    /* filled in by Intuition for drag selections */
  176. };
  177.  
  178. struct IntuiText IText7 = {
  179.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  180.     0,0,    /* XY origin relative to container TopLeft */
  181.     &TOPAZ80,    /* font pointer or NULL for default */
  182.     "AutoPlay",    /* pointer to text */
  183.     NULL    /* next IntuiText structure */
  184. };
  185.  
  186. struct MenuItem MenuItem5 = {
  187.     &MenuItem6,    /* next MenuItem structure */
  188.     0,8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  189.     123,8,    /* hit box width and height */
  190.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  191.     0,    /* each bit mutually-excludes a same-level Item */
  192.     (APTR)&IText7,    /* Item render  (IntuiText or Image or NULL) */
  193.     NULL,    /* Select render */
  194.     NULL,    /* alternate command-key */
  195.     NULL,    /* SubItem list */
  196.     MENUNULL    /* filled in by Intuition for drag selections */
  197. };
  198.  
  199. struct IntuiText IText8 = {
  200.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  201.     0,0,    /* XY origin relative to container TopLeft */
  202.     &TOPAZ80,    /* font pointer or NULL for default */
  203.     "Swap Sides",    /* pointer to text */
  204.     NULL    /* next IntuiText structure */
  205. };
  206.  
  207. struct MenuItem MenuItem4 = {
  208.     &MenuItem5,    /* next MenuItem structure */
  209.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  210.     123,8,    /* hit box width and height */
  211.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  212.     0,    /* each bit mutually-excludes a same-level Item */
  213.     (APTR)&IText8,    /* Item render  (IntuiText or Image or NULL) */
  214.     NULL,    /* Select render */
  215.     'S',    /* alternate command-key */
  216.     NULL,    /* SubItem list */
  217.     MENUNULL    /* filled in by Intuition for drag selections */
  218. };
  219.  
  220. struct Menu Menu3 = {
  221.     &Menu4,    /* next Menu structure */
  222.     92,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  223.     63,0,    /* Menu hit box width and height */
  224.     MENUENABLED,    /* Menu flags */
  225.     "Control",    /* text of Menu name */
  226.     &MenuItem4    /* MenuItem linked list pointer */
  227. };
  228.  
  229. struct IntuiText IText9 = {
  230.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  231.     0,0,    /* XY origin relative to container TopLeft */
  232.     &TOPAZ80,    /* font pointer or NULL for default */
  233.     "ReverseBoard",    /* pointer to text */
  234.     NULL    /* next IntuiText structure */
  235. };
  236.  
  237. struct MenuItem MenuItem11 = {
  238.     NULL,    /* next MenuItem structu